package teste.edge.innerclass;

public class OuterClass1 {

	private String nameOuter = "MyOuterClass";
	
	public void seeNameOfClasses()
	{
		InnerClass inner = new InnerClass();
		inner.seeNameInner();
		inner.seeNameOuter();
	}
	
	class InnerClass{
		private String nameInner = "MyInnerClass";
	
		void seeNameInner()
		{
			System.out.println("The name of Inner Classe is: " + nameInner + 
					", this: " + InnerClass.this);
		}
		
		void seeNameOuter()
		{
			System.out.println("The name of Outer Classe is: " + nameOuter + 
					", this: " + OuterClass1.this);
		}
	}
	
}
